/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.ordersstore.entity;

import com.jeeplus.modules.goodsspecs.entity.GoodsSpec;
import com.jeeplus.modules.member.entity.Member;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.modules.goodsstore.entity.GoodsStore;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.modules.zone.entity.Zone;

/**
 * 商城订单Entity
 * @author lxj
 * @version 2020-11-09
 */
public class OrdersStore extends DataEntity<OrdersStore> {
	
	private static final long serialVersionUID = 1L;
	private String ordersNo;		// 订单编号
	private Member member;		// 购买用户
	private Double jifen;		// 抵扣积分
	private Double money;		// 支付金额
	private Date paytime;		// 支付时间
	private String ordersStatus;		// 订单状态
	private GoodsStore goodsStore;		// 商品
	private String goodsPic;		// 商品缩略图
	private Double goodsPrice;		// 商品单价
	private Integer goodsNum;		// 商品数量
	private String addressName;		// 收货人
	private String addressAdd;		// 收货地址
	private String addressMobile;		// 收货人电话
	private String spec;			//	商品规格   积分中心

	private GoodsSpec goodsSpec;    //传前端用 规格信息

	private String specName;

	private Double sendIntegral;    //传前端积分

	private String isExchange;  //是否兑换

	/**
	 * 表单提交积分中心
	 */
	private Member serviceMem;

	private String showPrice;	//判断显示金额还是积分  0:积分	1：余额

	private Zone zone;

	public OrdersStore() {
		super();
	}

	public OrdersStore(String id){
		super(id);
	}

	@ExcelField(title="订单编号", align=2, sort=1)
	public String getOrdersNo() {
		return ordersNo;
	}

	public void setOrdersNo(String ordersNo) {
		this.ordersNo = ordersNo;
	}
	
	@ExcelField(title="购买用户", fieldType=Member.class, value="member.loginName", align=2, sort=2)
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}
	
	@ExcelField(title="抵扣积分", align=2, sort=3)
	public Double getJifen() {
		return jifen;
	}

	public void setJifen(Double jifen) {
		this.jifen = jifen;
	}
	
//	@ExcelField(title="支付金额", align=2, sort=4)
	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="支付时间", align=2, sort=5)
	public Date getPaytime() {
		return paytime;
	}

	public void setPaytime(Date paytime) {
		this.paytime = paytime;
	}
	
	@ExcelField(title="订单状态", dictType="order_store_status", align=2, sort=6)
	public String getOrdersStatus() {
		return ordersStatus;
	}

	public void setOrdersStatus(String ordersStatus) {
		this.ordersStatus = ordersStatus;
	}
	
	@ExcelField(title="商品", fieldType=GoodsStore.class, value="goodsStore.name", align=2, sort=7)
	public GoodsStore getGoodsStore() {
		return goodsStore;
	}

	public void setGoodsStore(GoodsStore goodsStore) {
		this.goodsStore = goodsStore;
	}
	
	@ExcelField(title="商品缩略图", align=2, sort=8)
	public String getGoodsPic() {
		return goodsPic;
	}

	public void setGoodsPic(String goodsPic) {
		this.goodsPic = goodsPic;
	}
	
	@ExcelField(title="商品单价", align=2, sort=9)
	public Double getGoodsPrice() {
		return goodsPrice;
	}

	public void setGoodsPrice(Double goodsPrice) {
		this.goodsPrice = goodsPrice;
	}
	
	@ExcelField(title="商品数量", align=2, sort=10)
	public Integer getGoodsNum() {
		return goodsNum;
	}

	public void setGoodsNum(Integer goodsNum) {
		this.goodsNum = goodsNum;
	}
	
	@ExcelField(title="收货人", align=2, sort=11)
	public String getAddressName() {
		return addressName;
	}

	public void setAddressName(String addressName) {
		this.addressName = addressName;
	}
	
	@ExcelField(title="收货地址", align=2, sort=12)
	public String getAddressAdd() {
		return addressAdd;
	}

	public void setAddressAdd(String addressAdd) {
		this.addressAdd = addressAdd;
	}
	
	@ExcelField(title="收货人电话", align=2, sort=13)
	public String getAddressMobile() {
		return addressMobile;
	}

	public void setAddressMobile(String addressMobile) {
		this.addressMobile = addressMobile;
	}

	@ExcelField(title="积分中心", align=2, sort=14)
	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public GoodsSpec getGoodsSpec() {
		return goodsSpec;
	}

	public void setGoodsSpec(GoodsSpec goodsSpec) {
		this.goodsSpec = goodsSpec;
	}

	public String getSpecName() {
		return specName;
	}

	public void setSpecName(String specName) {
		this.specName = specName;
	}

	public Double getSendIntegral() {
		return sendIntegral;
	}

	public void setSendIntegral(Double sendIntegral) {
		this.sendIntegral = sendIntegral;
	}

	public String getIsExchange() {
		return isExchange;
	}

	public void setIsExchange(String isExchange) {
		this.isExchange = isExchange;
	}

	public Member getServiceMem() {
		return serviceMem;
	}

	public void setServiceMem(Member serviceMem) {
		this.serviceMem = serviceMem;
	}

	public String getShowPrice() {
		return showPrice;
	}

	public void setShowPrice(String showPrice) {
		this.showPrice = showPrice;
	}

	public Zone getZone() {
		return zone;
	}

	public void setZone(Zone zone) {
		this.zone = zone;
	}
}